package com.alexander.cloundexplorer.dialog;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.widget.Toast;

import com.alexander.cloundexplorer.bean.params.User;

/**
 * @author 14014
 */
public class BaseDialog extends Dialog
{
    protected User user;

    public BaseDialog(@NonNull Context context, User user)
    {
        super(context);
        this.user = user;
    }

    public BaseDialog(@NonNull Context context, int themeResId, User user)
    {
        super(context, themeResId);
        this.user = user;
    }

    public BaseDialog(@NonNull Context context, boolean cancelable, @Nullable OnCancelListener cancelListener, User user)
    {
        super(context, cancelable, cancelListener);
        this.user = user;
    }

    protected void showTip(String text)
    {
        Toast.makeText(getContext(), text, Toast.LENGTH_SHORT).show();
    }
}
